﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using HRProject.Code.Common;

namespace HRProject.Code.DTO
{
    public class BLAgentMonthlyResponsibleSalary : BLAgentMonthlySalary
    {
        public const string RESPONSIBLE_LEVEL = "ResponsibleLevel";

        private BLMonthlyResponsibleSalaryTable monthRef;
        private BLSalaryInfo responsibleLevel;
        private int totalResponsibleSalary;

        public BLMonthlyResponsibleSalaryTable MonthRef
        {
            get { return monthRef; }
            set { monthRef = value; }
        }

        public int TotalResponsibleSalary
        {
            get { return totalResponsibleSalary; }
            set { totalResponsibleSalary = value; }
        }

        public string TotalResponsibleSalaryString
        {
            get
            {
                return Util.CustomFormat(totalResponsibleSalary.ToString(Constant.LongFormat, Constant.enCulture));
            }
        }

        public BLSalaryInfo ResponsibleLevel
        {
            get { return responsibleLevel; }
            set { responsibleLevel = value; }
        }

        public BLAgentMonthlyResponsibleSalary(BLMonthlyResponsibleSalaryTable monthRef)
            :base()
        {
            this.monthRef = monthRef;
            this.responsibleLevel = new BLSalaryInfo();
            this.responsibleLevel.InfoName = RESPONSIBLE_LEVEL;
        }
    }
}
